#ifndef AUTOMATICXML_H
#define AUTOMATICXML_H

#include <QObject>
#include <QDateTime>
#include <QStringList>
#include "BaseXml.h"
#include "DataType/AutomaticStruct.h"
#include "DataType/ControlPointStruct.h"

class AutomaticXml : public BaseXml<AutomaticXml>
{
public:
    friend class BaseXml<AutomaticXml>;
    bool parser();
    bool modify(const AutomaticStruct &automatic);
    bool clear();

    QList<AutomaticStruct> automaticList() const;
    void setAutomaticList(const QList<AutomaticStruct> &automaticList);

    quint16 getTimetoGO();
    bool getTestStata();
    void setTimetoGO(quint16 time);
    void setTestStata(bool stata);

    quint16 getBestTime();
    bool getBestStata();
    void setBestTime(quint16 time);
    void setBestStata(bool stata);
    int timego;
private:
    AutomaticXml();
    QList<AutomaticStruct> m_automaticList;
    quint16 m_Timetogo;
    bool m_teststata;
    quint16 m_BestTime;
    bool m_BestStata;
};

#endif // AUTOMATICXML_H
